#define _CRT_SECURE_NO_WARNINGS 1

#include"heap.h"

int main()
{

	int a[] = { 3,6,8,5,4,9,11 };
	HeapSort(a, sizeof(a) / sizeof(int));
	for (int i = 0; i < sizeof(a) / sizeof(int); i++)
	{
		printf("%d ", a[i]);
	}
	printf("\n");


	int b[] = { 3,6,8,5,4,9,11,0 };
	int sz = sizeof(b) / sizeof(int);
	TopK(b, sz, 3);

	return 0;
}